package com.wnnight.wys.entity.config;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @ClassName: ChargeConfig
 * @Description: //收费配置实体类
 * @author: LZJ
 * @date: 2022/8/27-17:08
 * @version: v1.0
 */
@Getter
@Setter
@TableName("wys_charge_config")
public class ChargeConfig {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "收费项目不能为空")
    @TableField("charge_project")
    private String chargeProject;       //收费项目名

    @NotNull(message = "收费项目单价不能为空")
    @TableField("unit_price")
    @DecimalMin(value = "0",message = "项目单价不能小于0")
    private BigDecimal unitPrice;       //收费项目单价

    @NotNull(message = "收费项目单位不能为空")
    @TableField("company")
    private String company;             //收费项目单位

    @NotNull(message = "收费通知消息的发送方式不能为空")
    @TableField("message")
    private String message;             //收费通知消息的发送方式

    @NotNull(message = "状态不能为空")
    @TableField("status")
    private String status;              //状态
}
